<?php

namespace CMBUBank\UBank\Request\TransManager;

use CMBUBank\UBank\Request\UBankBaseRequest;
use CMBUBank\UBank\Response\TransManager\TransManagerSubunitTodayTradeResponse;

class TransManagerSubunitTodayTradeRequest extends UBankBaseRequest
{
    protected $code = 'NTDMTQRD';

    protected $response = TransManagerSubunitTodayTradeResponse::class;

    protected $logTip = '记账子单元当天交易查询';

    private $backNo;

    private $account;

    private $subCode;

    private $page;

    public function generate(): array
    {
        return [
            'ntdmtqrdy1' => [[
                'bbknbr' => $this->backNo,
                'inbacc' => $this->account,
                'dyanbr' => $this->subCode,
                'ctnkey' => $this->page,
            ]],
        ];
    }

    public function setBackNo(string $backNo): void
    {
        $this->backNo = $backNo;
    }

    public function setAccount(string $account): void
    {
        $this->account = $account;
    }

    public function setSubCode(string $subCode): void
    {
        $this->subCode = $subCode;
    }

    public function setPage(string $page): void
    {
        $this->page = $page;
    }
}